import request from "@/utils/request"
import qs from "qs"
// export const getuserInfo = function (data) {
//     return request.post("/api.html", qs.stringify(data))
// }

// export const login = function (data, config) {
//     return request.post("/api.html", data, config)
// }

const register = function (data, config) {
    return request.post("/member/reg_new2.php", qs.stringify(data), config)
}
const login = function (data, config) {
    return request.post("/member/index_login.php", qs.stringify(data), config)
}
const getuserInfo = function (data, config) {
    return request.post("/member/ajax_login.php", qs.stringify(data), config)
}
export { register, login, getuserInfo };